<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;
use Home\Model\Ordersuccess;

class OrdersuccessController extends Controller
{
	protected $db;

	//构造函数
	public function __init()
	{
		$this->db = new Ordersuccess;
	}
	
    //动作
    public function index(){
    	$userid = $_SESSION['oid'];
    	$data = $this->db->only($userid);
    	View::with('data',$data);
       	View::make();
    }
}
